
<?php 

$admin_detail    = select_one_line_all_items($table_Prefix."login_admin","name='".$_SESSION['username']."'");

?>

<ul class="layui-nav"  >




<!--不再需要搜索框。改成在各自板块中，出现一个工具栏。
<div class="search-set-content">-->
<!--            <form id="search_form" method="post" action="--><?// echo $site_admin_url ?><!--/search/detail-list.php" name="search_form">-->
<!--                <input name="keywords" type="text" class="search-input">-->
<!--                <input name="search-product" type="submit" value="" class="search-sub">-->
<!--            </form>-->
<!--        </div>-->




  <li class="layui-nav-item <?if(!$_REQUEST['sys_part']){echo "layui-this";}?>"> <a href="/controller/"><i class="layui-icon">&#xe632;</i>系统首页</a></li>

    <li class="layui-nav-item"><a href="<?echo $site['domin']?>" target="_blank"><i class="layui-icon">&#xe7ae;</i>前台首页</a>
        <dl class="layui-nav-child"> <!-- 二级菜单 -->
            <dd><a href="<?echo $site['domin']?>" target="_blank">网站前台 </a></dd>
            <?if(!empty($site['spdomin'])){ ?>
                <dd><a href="<?echo $site['spdomin']?>" target="_blank">英文网站前台 </a></dd>
            <?} ?>
            <?if(!empty($site['m_chdomin'])){ ?>
                <dd><a href="<?echo $site['m_chdomin']?>" target="_blank">手机前台 </a></dd>
            <?} ?>
            <?if(!empty($site['m_spdomin'])){ ?>
                <dd><a href="<?echo $site['m_spdomin']?>" target="_blank">英文手机前台 </a></dd>
            <?} ?>
            <dd><a href="http://www.circledesign.cn" target="_blank">圆点设计 </a></dd>


<!-- 点击微信公众号，会弹出我们圆点的二维码和介绍。
           <dd><a href="" target="_blank">微信公众号</a></dd>-->
            <!--      <dd><a href="" target="_blank">产品目录/画册</a></dd>-->
            <!--      <dd><a href="" target="_blank">ERP系统</a></dd>-->
        </dl>
    </li>





  <li class="layui-nav-item <?if($_REQUEST['sys_part'] == 'site'){echo "layui-this";}?>"><a href="/controller/extender/site/view/edit.php?sys_part=site"><i class="layui-icon">&#xe614;</i>系统设置</a></li>


  <li class="layui-nav-item <?if($_REQUEST['sys_part'] == 'user'){echo "layui-this";}?>">
    <a href="javascript:;"><i class="layui-icon">&#xe770;</i>用户中心</a>
    <dl class="layui-nav-child"> <!-- 二级菜单 -->
      <dd><a href="/controller/loginout.php">注销登录</a></dd>
      <dd>
          <a href='/controller/extender/user/view/detail-edit.php?sys_part=user&nid=<?php echo $admin_detail['nid'];?>&nav_l2=now_user'>个人资料</a></dd>
<!--      <dd><a href="">常见问题</a></dd>-->
      <dd><a href="http://wpa.qq.com/msgrd?v=3&uin=1876717017&site=qq&menu=yes" target="_blank">在线客服</a></dd>
    </dl>
  </li>


  <li class="layui-nav-item " style="display: none">
    <a href="javascript:;">
    	<i class="layui-icon" style="font-size:16px;">&#xe630;</i>

        <?php
		$server_url = 'http://'.$_SERVER['SERVER_NAME'];


		if(strpos($server_url,$site['subdomain']) !== false){
			echo '英文版';
		}
		elseif(strpos($server_url,$site['chdomin']) !== false){
			echo '中文版';
		}
		elseif(strpos($server_url,$site['spdomin']) !== false){
			echo '西班牙文版';
		}
		elseif(strpos($server_url,$site['jpdomin']) !== false){
			echo '日文版';
		}
		elseif(strpos($server_url,$site['krdomin']) !== false){
			echo '韩文版';
		}
		elseif(strpos($server_url,$site['chwdomin']) !== false){
			echo '中文繁体版';
		}
		//zheli

		elseif(strpos($server_url,$site['m_subdomin']) !== false){
			echo '英文手机版';
		}
		elseif(strpos($server_url,$site['m_chdomin']) !== false){
			echo '中文手机版';
		}
		elseif(strpos($server_url,$site['m_spdomin']) !== false){
			echo '西班牙文手机版';
		}
		elseif(strpos($server_url,$site['m_jpdomin']) !== false){
			echo '日文手机版';
		}
		elseif(strpos($server_url,$site['m_krdomin']) !== false){
			echo '韩文手机版';
		}
		elseif(strpos($server_url,$site['m_chwdomin']) !== false){
			echo '中文繁体手机版';
		}
		?>

    </a>
    <dl class="layui-nav-child" style="right:0;left: unset;">

      <?php if($site['chdomin']){?>
      <dd><a href="<?php echo $site['chdomin'];?>/controller">中文版</a></dd>
      <?php }?>
      <?php if($site['subdomain']){?>
      <dd><a href="<?php echo $site['subdomain'];?>/controller">英文版</a></dd>
      <?php }?>

      <?php if($site['spdomin']){?>
      <dd><a href="<?php echo $site['spdomin'];?>/controller">西班牙文版</a></dd>
      <?php }?>
      <?php if($site['jpdomin']){?>
      <dd><a href="<?php echo $site['jpdomin'];?>/controller">日文版</a></dd>
      <?php }?>
      <?php if($site['krdomin']){?>
      <dd><a href="<?php echo $site['krdomin'];?>/controller">韩文版</a></dd>
      <?php }?>
      <?php if($site['chwdomin']){?>
      <dd><a href="<?php echo $site['chwdomin'];?>/controller">中文繁体版</a></dd>
      <?php }?>

      <?php if($site['m_chdomin']){?>
      <dd><a href="<?php echo $site['m_chdomin'];?>/controller">中文手机版</a></dd>
      <?php }?>
      <?php if($site['m_subdomain']){?>
      <dd><a href="<?php echo $site['m_subdomain'];?>/controller">英文手机版</a></dd>
      <?php }?>

      <?php if($site['m_spdomin']){?>
      <dd><a href="<?php echo $site['m_spdomin'];?>/controller">西班牙文手机版</a></dd>
      <?php }?>
      <?php if($site['m_jpdomin']){?>
      <dd><a href="<?php echo $site['m_jpdomin'];?>/controller">日文手机版</a></dd>
      <?php }?>
      <?php if($site['m_krdomin']){?>
      <dd><a href="<?php echo $site['m_krdomin'];?>/controller">韩文手机版</a></dd>
      <?php }?>
      <?php if($site['m_chwdomin']){?>
      <dd><a href="<?php echo $site['m_chwdomin'];?>/controller">中文繁体手机版</a></dd>
      <?php }?>
    </dl>
  </li>

</ul>

<style>
.flash_box{width:100%;  background:#00F; color:#fff; text-align:center; height:40px; line-height:40px; opacity:1;}
</style>

<!--<div class="flash_box">
展示内容
</div>-->


<!--
<div id="topbarmid">
    <ul>
        <li>
            <a href="<? echo $site_domin ?>" class="home_icon" target="_blank" title="打开网站前台首页">网站</a>
        </li>
        <li>
            <a href="<? echo $site_admin_url ?>/site/edit.php" class="setup_icon" title="设置网站域名、地址、描述、关键词等必要信息，一般由圆点设计预设，如擅自修改，可能出现网站显示不正常等问题">设置</a>
        </li>
        <li>
            <a href="<? echo $site_admin_url ?>/loginout.php" class="logout_icon" title="退出登陆，重新输入帐密登陆网站管理系统">退出</a>
        </li>
    </ul>
    <div class="search-set">-->
<!--        <h2>--><?//echo $_SESSION['username']?><!--,欢迎您</h2>-->
<!--<div class="search-set-content">
            <form id="search_form" method="post" action="<? echo $site_admin_url ?>/search/detail-list.php" name="search_form">
                <input name="keywords" type="text" class="search-input">
                <input name="search-product" type="submit" value="" class="search-sub">
            </form>
        </div>
    </div>
</div>-->
